package com.xinchuang.entity.targetSystem.damage;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 避打区域管理
 * </p>
 *
 * @author zhb
 */
@Data
@TableName("t_avoid_hitting")
@ApiModel(value = "AvoidHitting对象", description = "避打区域管理")
public class AvoidHitting implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id")
    private String id;

    @ApiModelProperty("避打区域名称")
    @TableField(value = "avoid_hitting_name")
    private String avoidHittingName;

    @ApiModelProperty("避打类型")
    @TableField(value = "avoid_hitting_type")
    private String avoidHittingType;

    @ApiModelProperty("经度")
    @TableField(value = "lon")
    private Double lon;

    @ApiModelProperty("纬度")
    @TableField(value = "lat")
    private Double lat;

    @ApiModelProperty("创建人")
    @TableField(value = "create_user")
    private String createUser;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty("修改人")
    @TableField(value = "update_user")
    private String updateUser;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty("状态(0:正常,1：删除)")
    @TableField(value = "data_status")
    private int dataStatus;

    @TableField(exist = false)
    private String avoidHittingTypeLabel;
}
